#include <iostream>
#include <vector>

using namespace std;

int main()
{
	const int N = 10;
	const int M = 100;
	vector<vector<int> > array;

	int i=0;
	while (i<M)
	{			
		i++;
		vector<int> tmparray;
		for (int i=0; i<N; i++)
		{
			int itmp;
			cin>>itmp;
			tmparray.push_back(itmp);
		}
		array.push_back(tmparray);
	}

	int ilen = array.size();
	for (int i=0; i<ilen; i++)
	{
		int itmp = array[i][0];
		for (int j=0; j<N; j++)
		{			
			if (itmp < array[i][j])
			{
				itmp = array[i][j];
			}
		}		
		cout<<"max="<<itmp<<endl;		
	}

	return 1;
}
